import { defineStore } from "pinia";

// https://pinia.vuejs.org/zh/
const useTestPinia = defineStore("testStore", {
  state: () => {
    return {
      msg: "hello pinia"
    };
  },
  actions: {
    setMsg(val: string) {
      this.msg = val;
    }
  }
});

export default useTestPinia;
